package com.domain;


//长度2









public class  Tcp_public_data
        {
        int head=0;       //头2
        int batch=0;      //批次1   //版本
        int kind=0;       //种类2   //数据格式
        int open=0;       //开关1
        int speed=0;      //速度2
        long clour=0;      //颜色6   //解码格式
        int lenth=0;     //长度2
        public byte[] content; //内容
        int check=0;      //校验2
        int tail=0;       //结尾1

        public int getHead() {
        return head;
        }

        public void setHead(int head) {
        this.head = head;
        }

        public int getBatch() {
        return batch;
        }

        public void setBatch(int batch) {
        this.batch = batch;
        }

        public int getKind() {
        return kind;
        }

        public void setKind(int kind) {
        this.kind = kind;
        }

        public int getOpen() {
        return open;
        }

        public void setOpen(int open) {
        this.open = open;
        }

        public int getSpeed() {
        return speed;
        }

        public void setSpeed(int speed) {
        this.speed = speed;
        }

        public long getClour() {
        return clour;
        }

        public void setClour(long clour) {
        this.clour = clour;
        }

        public int getLenth() {
        return lenth;
        }

        public void setLenth(int lenth) {
        this.lenth = lenth;
        }



        public int getCheck() {
        return check;
        }

        public void setCheck(int check) {
        this.check = check;
        }

        public int getTail() {
        return tail;
        }

        public void setTail(int tail) {
        this.tail = tail;
        }

        @Override
        public String toString() {
        return "Tcp_public_data{" +
        "head=" + head +
        ", batch=" + batch +
        ", kind=" + kind +
        ", open=" + open +
        ", speed=" + speed +
        ", clour=" + clour +
        ", lenth=" + lenth +
        ", content='" + content + '\'' +
        ", check=" + check +
        ", tail=" + tail +
        '}';
        }


        }
